<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<p id="para">单击按钮以更改此段落中的文本：</p>
		<button onclick="myFunc()">点击我</button>
		
		<script>
			function myFunc(){
				document.getElementById("para").innerHTML="HelloWord";
			}
		</script>
	</body>
</html>